define(['jquery'],function($){
  var exports = {
    updateMainContent: function($context, model){
      var $ul = $('<ul class="articles"></ul>'),
              $li,$title,$link,$url,$img, $summary;
      $.each(model['projectlist'],function(index, item){
        $li = $('<li></li>');
        $title = $('<h2></h2>').html(item.title);
        $link = $('<a></a>');
        $img = $('<img />').attr('src',item.img);
        $summary = $('<p></p>').html(item.summary);

        $link.append($title).append($img);
        $li.append($link).append($summary);
        $ul.append($li);
      });

      $context.append($ul);


    }
  } ;
  return exports;

});